import path from './path';
import axios from './axios';

export const test = (data) => {
    return axios(path.test, {
        method: 'post',
        data
    })
}

export const login = (data) => {
    return axios(path.login, {
        method: 'post',
        data
    })
}

export const edit = (data) => {
    return axios(path.edit, {
        method: 'post',
        data
    })
}

export const query = () => {
    return axios(path.query, {
        method: 'get',
    })
}


export const getConfig = () => {
    return axios(path.getConfig, {
        method: 'get',
    })
}


export const setConfig = (data) => {
    return axios(path.setConfig, {
        method: 'post',
        data
    })
}

export const addPage = (data) => {
    return axios(path.addPage, {
        method: 'post',
        data
    })
}

export const list = (data) => {
    return axios(path.list, {
        method: 'post',
        data
    })
}